classdef ziSettings
    %ZISETTINGS Summary of this class goes here
    %   Detailed explanation goes here
    
    properties(SetAccess = immutable)
        root
        isWrite
        dataType
        option
        
        toString
        toFullString
    end
    
    methods
        function obj = ziSettings(rootstring, nodestring, isWrite, type, option)
            %ZISETTINGS Construct an instance of this class
            %   Detailed explanation goes here
            obj.root = rootstring;
            obj.toString = nodestring;
            obj.toFullString = [rootstring '/' nodestring];
            obj.isWrite = isWrite;
            obj.dataType = type;
            obj.option = option;
        end
        
        function root = getRoot(obj)
            strCell = strsplit(obj.toString, '/');
            root = strCell{1};
        end
    end
end

